<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>

  <script>
    // "变量"||'变量'或者'变量1'&&'变量2'这种写法就是短路元算
    // 短路运算的结果 要么是变量1,要么是变量2
    let a = 1
    let b = 2
    let c = 0
    let d = false
    let e = a || b
    console.log(e);
  </script>
</body>

</html>